import request from '@/config/axios'
/**
 * 创建试住登记
 */
export const create = (data) => {
  return request.post({ url: '/elder/try-living/create', data })
}

/**
 * 更新试住登记
 */
export const update = (data) => {
  return request.post({ url: '/elder/try-living/update', data })
}

/**
 * 试住登记查询
 */
export const query = (params) => {
  return request.get({ url: '/elder/try-living/query', params })
}

/**
 * 删除试住登记
 */
export const deleted = (id) => {
  return request.delete({ url: '/elder/try-living/deleted?id=' + id })
}

/**
 * 获取单个试住登记信息
 */
export const get = (id) => {
  return request.get({ url: '/elder/try-living/get?id=' + id })
}
